| Conditions | 2 |
| Total Lines | 8 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const stringifyProperty: SymbolConstructor["toPrimitive"] | "valueOf" | "toString" = Symbol.toPrimitive |
||
| 21 | |||
| 22 | function emptize(source: undefined|Record<string, any>) { |
||
| 23 | if ( |
||
| 24 | source |
||
| 25 | && !source.hasOwnProperty(stringifyProperty) |
||
| 26 | ) |
||
| 27 | $defineProperty(source, stringifyProperty, {value: emptyLambda}) |
||
| 28 | return source |
||
| 29 | } |
||
| 34 |